﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PMSSys
{
    public partial class FollowUpView : Form
    {
        public FollowUpView(patientController ppcontroller, Patient pObject)
        {
            InitializeComponent();
            followController = new followupController();
            followController.DbConnect = ppcontroller.DbConnect;
            this.pObject = pObject;
            DataTable lst = followController.getDataTable(pObject.PatientID);
            dataGridView1.DataSource = lst;
            dataGridView1.Columns[0].Visible = false;


        }
        private followupController followController;
        private Patient pObject;

        private void button6_Click(object sender, EventArgs e)
        {
            this.Close();
        }

        private void newFollowupEntryButton_Click(object sender, EventArgs e)
        {
            FollowUpEntryView newWindow = new FollowUpEntryView();
            newWindow.ShowDialog();
        }

        private void openFollowupEntryButton_Click(object sender, EventArgs e)
        {
            //logic to load with initial parameters place here
            FollowUpEntryView newWindow = new FollowUpEntryView();
            newWindow.ShowDialog();
        }

        private void removeMarkerButton_Click(object sender, EventArgs e)
        {
            //logic to remove entry from list
        }

        private void FollowUpView_Load(object sender, EventArgs e)
        {
            ToolTip t1 = uiUtility.tooltips();
            t1.SetToolTip(this.openFollowupEntryButton, "Open Follow-Up Entry");
            t1.SetToolTip(this.newFollowupEntryButton, "New Follow-Up Entry");
            t1.SetToolTip(this.removeMarkerButton, "Remove Follouw-Up Entry");
            t1.SetToolTip(this.button6, "Back");
        }

    }
}
